#include "install_window.h"
#include "ui_install_window.h"

InstallWindow::InstallWindow(QWidget* parent)
    : QMainWindow(parent)
    , ui(new Ui::InstallWindow)
{
    ui->setupUi(this);
    this->setWindowTitle("KFC Crazy Thrusday VME 50");
    ui->label_alipay->setScaledContents(true);

    QBitmap bmp(this->size());
    bmp.fill();
    QPainter p(&bmp);
    p.setPen(Qt::NoPen);
    p.setBrush(Qt::black);
    p.drawRoundedRect(bmp.rect(), 15, 15);
    this->setMask((bmp));
    this->setWindowFlags(Qt::FramelessWindowHint);
}

InstallWindow::~InstallWindow()
{
    delete ui;
}

void InstallWindow::on_pushButton_clicked()
{
    this->close();
}
